<div class="page-header">
    <h3><b>Chi tiết gia sư </b></h3>
</div>
<div class="panel panel-default">

    <div class="panel-body">
        <?php $value = $data[0];?>
        <div class="col-md-6">
            <div class="col-md-4" style="padding: 0px;">
                <h4><b>Gia sư :</b></h4>
            </div>
            <div class="col-md-6" style="padding: 0px;">
                <h5 class="text-primary"><b>Gs7s-giasu-<?php echo $value['id']; ?></b></h5>
            </div>
            <div class="col-md-12">

                <h5><b>Họ tên</b> : <?php echo $value['tenhienthi']; ?></h5>
                <h5><b>Giới tính</b> : 
                    <?php
                    if ($value['gioitinh'] == 0)
                        echo "Nam";
                    else if ($value['gioitinh'] == 1)
                        echo "Nữ";
                    ?></h5>
                <h5><b>Tình độ</b> : <?php echo $value['trinhdo']; ?></h5>
                <h5><b>Học trường :</b> <?php echo $value['HocTruong'] ?></h5>
                <h5><b>Chuyên ngành</b> : <?php echo $value['ChuyenNganh']; ?></h5>

            </div>
        </div>
        <div class="col-md-6">
            <h4><b>Nhận dạy lớp</b></h4>
            <div class="col-md-12">
                <h5><b>Môn học</b> : <?php echo $value['MonHoc']; ?></h5>
                <h5><b>Dạy lớp</b> : <?php echo $value['KhoiLopDay']; ?></h5>
                <h5><b>Số buổi/Tuần: </b><?php echo $value['SoBuoiDay']; ?></h5>
                <h5><b>Khu Vực dạy : </b> <?php echo $value['KhuVucDay']; ?></h5>
                <h5><b>Mức Lương</b> : <b style="color: red"> <?php echo number_format($value['MucLuongYeuCau'],0,'', ',') ?></b> / tháng</h5>
                

            </div>
            <div class="text-center">
                <p>
                    <?php
                    if ($id != null) {
                        ?>
                       <?php echo form_open('giaodich/giaodich/chongiasu/' . $id . '/' . $value['id']); ?>
                        <button type="submit" class="btn btn-primary" value="Lựa chọn">
                            <b>Đăng ký gia sư »</b>
                        </button>
                        <?php echo form_close(); ?>
                        <?php
                    } else {
                        ?>
                        <?php echo form_open('thanhvien/thanhvien/no_login'); ?>
                        <button type="submit" class="btn btn-primary" value="Lựa chọn">
                            <b>Đăng ký gia sư »</b>
                        </button>
                        <?php echo form_close(); ?>
                        <?php
                    }
                    ?>
                </p>
            </div>
        </div>


    </div>
</div>
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">Góp ý   </h3>
    </div>
    <div class="panel-body">
        <?php
        $attributes = array('class' => 'form-horizontal', 'role' => 'form',);
        echo form_open("lienhe/feedback");
        ?>
        <div class="form-group row">
            <label class="col-sm-3 control-label">Họ và tên</label>
            <div class="col-sm-9">
                <input type="text" class="form-control"  placeholder="Họ và tên" name="name" />
            </div>   
        </div>   
        <span style="color:red;"><?php echo form_error('name'); ?></span>

        <div class="form-group row">
            <label class="col-sm-3 control-label">Điện thoại</label>
            <div class="col-sm-9">
                <input type="text" class="form-control"  placeholder="Số điện thoại" name="sdt" />
            </div>
        </div>      
        <span style="color:red;"><?php echo form_error('sdt'); ?></span>

        <div class="form-group row">
            <label class="col-sm-3 control-label">Email</label>
            <div class="col-sm-9">
                <input type="email" class="form-control" placeholder="Email" name="email" />
            </div>
        </div>
        <span style="color:red;"><?php echo form_error('email'); ?></span>

        <div class="form-group row">
            <label class="col-sm-3 control-label">Tiêu đề</label>
            <div class="col-sm-9">
                <input type="text" class="form-control"  placeholder="Tiêu đề" name="title"/>
            </div>
        </div>
        <span style="color:red;"><?php echo form_error('title'); ?></span>

        <div class="form-group row">
            <label class="col-sm-3 control-label">Nội dung</label>
            <div class="col-sm-9">
                <textarea class="form-control" rows="3" name="content" placeholder="Nội dung phản hồi ..."></textarea>
            </div>
        </div>
        <span style="color:red;"><?php echo form_error('content'); ?></span>

        <div class="form-group row text-center">
            <button type="submit"  name="phanhoi" class="btn btn-primary" value="Gui">Phản hồi</button>
            <button type="reset" class="btn btn-default">Hủy</button>

        </div>
        <?php echo form_close(); ?>
    </div>
</div>

